<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no"
    />
    <title>无参函数</title>
    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
    <style>
      .username {
        display: none;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <div class="content">
        <button class="btn" onclick="showCode()">点击显示5行代码</button>
        <!-- 类选择器class-->
        <div class="msg">........</div>
      </div>
      <div class="content">
        <button class="btn" onclick="calculator()">点击进行计算</button>
        <div class="num">........</div>
      </div>
      <div>
        <button onclick="insertName()">点击添加名称</button>
        <button onclick="showName()">点击添加名称</button>
        <div class="username">......</div>
      </div>
    </div>
    <script src="./js/demo.js"></script>
  </body>
</html>
